package com.jic.member.request;

import com.jic.common.base.vo.AdminOperate;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@ApiModel("创建/编辑分支节点")
@AllArgsConstructor
@NoArgsConstructor
@Data
public class TripBranchNodeEntityRequest {
    /*
     * 主键id
     */
    private Long id;


    /*
     * 旅程分支节点code
     */
    private String nodeCode;

//    /*
//     * 节点模板id
//     */
//    private Long nodeTemplateId;


    /*
     *
     */
    @ApiModelProperty(value = "节点模板code" ,required = true)
    private String nodeTemplateCode;


    /*
     * 旅程分支id
     */
    private Long branchId;


    @ApiModelProperty(value = "上级节点id", required = true)
    private Long prevBranchNodeId;


    @ApiModelProperty(value = "节点变量")
    private String nodeVariable;


    /*
     * 事件类型
     */
    private Integer eventType;

    /*
     * 事件code
     */
    private String eventCode;

    @ApiModelProperty(value = "分支条件：0、无，1、是，2、否" , required = true)
    private Integer branchCondition;

    /*
     * 所属组织类型
     */
    private Integer deptType;


    /*
     * 所属组织id
     */
    private Long deptId;


    /*
     * 是否删除 0否，1是
     */
    private Integer deleteFlag;


    /*
     * 创建时间
     */
    private Date createTime;


    /*
     * 创建人
     */
    private Long creator;


    /*
     * 创建人姓名
     */
    private String creatorName;


    /*
     * 更新时间
     */
    private Date updateTime;


    /*
     * 更新人
     */
    private Long updator;


    /*
     * 更新人姓名
     */
    private String updatorName;


    @ApiModelProperty(value = "旅程id", required = true)
    private Long tripId;

    @ApiModelProperty(hidden = true)
    private AdminOperate adminOperate;

    @ApiModelProperty(value = "是否需要更新下级" ,required = true)
    private Boolean checkUpdateChild;
}
